<?php

namespace app\api\model\examination;

use app\common\exception\BaseException;
use app\common\model\examination\ExaminationAward as ExaminationAwardModel;


/**
 * 简历模型
 */
class ExaminationAward extends ExaminationAwardModel
{
    /**
     * 隐藏字段
     */
    protected $hidden = [];

    //获取列表
    public function getList()
    {
        $model = $this;
        $list = $model->with(['image'])
            ->where('is_delete',0)
            ->order('ranking asc')
            ->field("*")
            ->select()->toArray();
        return $list;
    }

    //获取列表
    public function details($data)
    {
        $model = $this;
        $list = $model->with(['image'])
            ->where('id',$data['id'])

            ->order('ranking asc')
            ->field("*")
            ->find();
        return $list;
    }

}